package com.IntelligentCommunity.community.api;

import com.IntelligentCommunity.common.core.constant.ServiceNameConstants;
import com.IntelligentCommunity.common.core.domain.R;
import com.IntelligentCommunity.community.api.factory.RemoteDistrictFallbackFactory;
import com.IntelligentCommunity.community.api.factory.RemoteDoorServiceFactory;
import com.IntelligentCommunity.community.domain.RealDoor;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author：ZHP
 * @Package：com.IntelligentCommunity.community.api.factory
 * @Project：IntelligentCommunity
 * @name：RemoteDoorService
 * @Date：2024/8/3 10:26
 * @Filename：RemoteDoorService
 */
@FeignClient(contextId = "remoteDoorService",
value = ServiceNameConstants.COMMUNITY_SERVICE,
fallbackFactory = RemoteDoorServiceFactory.class,
path = "/door")
public interface RemoteDoorService {
    @PostMapping("/add")
    public R add(@RequestBody RealDoor door);
}
